import axios from 'axios'
// 设置基准路径
axios.defaults.baseURL = 'http://localhost:8888/api'
// 评论列表数据
export const getcomments = (id, pageindex) => axios.get(`/getcomments/${id}?pageindex=${pageindex}`).then(res => res.data)
// 发表评论
export const postcomment = (id, content) => axios.post(`/postcomment/${id}`, content).then(res => res.data)
// 获取购物车信息
export const getshopcarlist = id => axios.get(`/goods/getshopcarlist/${id}`).then(res => res.data)
